﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CreateCodeByDatabase.Model
{
    /// <summary>
    /// 列信息
    /// </summary>
    public  class ColumnInfo
    {
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 列名
        /// </summary>
        public string ColumnName { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public string DataType { get; set; }
        /// <summary>
        /// 注释
        /// </summary>
        public string Comment { get; set; }

        #region 数据类型长度
        /// <summary>
        /// 长度
        /// </summary>
        public int DataLength { get; set; }
        /// <summary>
        /// 数据精度
        /// </summary>
        public int? DataPrecision { get; set; }
        /// <summary>
        /// 数据刻度
        /// </summary>
        public int? DataScale { get; set; }
        #endregion
    }
}
